Hey, I was wondering why access Token accessTokenPayload.userName in ReactJS returns nothing? Component is wrapped in . Am I missing something?
c
chunkygoo.
10/06/2022, 2:25 AM
They only provide the userId I think. To have the username in the payload, you’ll have to set the username yourself using mergeaccestokenpayload on your backend.
p
porcellus
10/06/2022, 9:16 AM
Hi. that's right, the access token payload only has props you added to it on the backend